//X掉二维码
$('.fix2').click(function(){
	$(this).hide();
	$('.fix1').hide();
})

//固定二维码的隐藏
$('.fix3').mouseenter(function(){
	$('.fix3').css('background','#1a1a1a')
	$('.wfix2').show();
	$('.wfix3').show();
	$('.wfix4').show();
})
$('.fix3').mouseleave(function(){
	$('.fix3').css('background','#808080')
	$('.wfix2').hide();
	$('.wfix3').hide();
	$('.wfix4').hide();
})
//二维码窗口滚动显示
$(window).scroll(function(){
	if($(window).scrollTop()>0){
		$('.fix3').fadeIn();
		$('.fix4').fadeIn();
	}else{
		$('.fix3').fadeOut();
		$('.fix4').fadeOut();
	}
	
})
$('.fix4').mouseenter(function(){
	$('.fix4').css('background','#1a1a1a')
})
$('.fix4').mouseleave(function(){
	$('.fix4').css('background','#808080')
})
$('.fix4').click(function(){
	$('html,body').animate({'scrollTop':'0px'}, 1000)
})

//头左下拉框
$('.head1').mouseenter(function(){
	$('.table1').show();
})

$('.head1').mouseleave(function(){
	$('.table1').hide();
})

//左下拉框变字
$('.table1 u').mouseenter(function(){
	$(this).hide().siblings().show();
})
$('.table1 i').mouseleave(function(){
	$(this).hide().siblings().show();
})

//头右边下拉框
$('.head2>li').mouseenter(function() {
	var a=$(this).index()
	if(a==0||a==1||a==2||a==6){
		$(this).css('background','#eaeceb');
	}
	if(a==2){
		$(this).children().eq(1).fadeIn();
	}
	$(this).children().eq(1).show();
});

//头右边下拉框
$('.head2>li').mouseleave(function() {
	var a=$(this).index()
	if(a==0||a==1||a==2||a==6){
		$(this).css('background','#f4f4f4');
	}
	$(this).children().eq(1).hide();
});

//菜单栏字体与背景
$('.menu li').click(function(){
	$(this).addClass('centent').siblings().removeClass('centent');
})

//购物车
$('.right u').mouseenter(function(){
	$('.shopcar').show();
})
$('.right u').mouseleave(function(){
	$('.shopcar').hide();
})

//搜索框下小文字变色
$('.right>span').mouseenter(function(){
	$(this).css('color','#d71d32');
})
$('.right>span').mouseleave(function(){
	$(this).css('color','#b0b0b0');
})

// //导航栏隐藏显示
var a;
var b;
var c;
var d;
$('.nav2>li').mouseenter(function(){
	if($(this).index()==2){
		a=setTimeout(function(){
			$('.nav2>li').eq(2).children('.nhide').stop().show();
		},500)
		
	}else if($(this).index()==3){
		b=setTimeout(function(){
			$('.nav2>li').eq(3).children('.nhide').stop().show();
		},500)
	}else if($(this).index()==4){
		c=setTimeout(function(){
			$('.nav2>li').eq(4).children('.nhide').stop().show();
		},500)
	}else if($(this).index()==5){
		d=setTimeout(function(){
			$('.nav2>li').eq(5).children('.nhide').stop().show();
		},500)
	}
})
$('.nav2>li').mouseleave(function(){
	clearTimeout(a);
	clearTimeout(b);
	clearTimeout(c);
	clearTimeout(d);
	$('.nhide').hide();
})

//点击更多
$('.mright2>a').click(function(){
	$('.more').slideToggle();
	$('.mright2>ul').slideToggle();
	$('.more>u').removeClass('mred');
	$('.mde>li>span').html('全部');
})


//更多里A——Z的颜色以及对应的内容
$('.more>u').mouseenter(function(){
	console.log($(this));
	$(this).addClass('mred').siblings().removeClass('mred');
	$('.mde>li>span').html($(this).html());
})

//点击多选+
$('.mright2>u').click(function(){
	$('.mright2>a').hide();
	$('.mright2>u').hide();
	$('.moreslt').slideToggle();
	$('.mright2>ul').slideToggle();
	$('.moreslt>u').removeClass('mred');
	$('.mde>li>span').html('全部');
})

//点击取消、确认显示更多、多选+
$('.confirm>button').click(function(){
	$('.mright2>a').show();
	$('.mright2>u').show();
	$('.moreslt').slideUp();
	$('.mright2>ul').show();
})
//多选+里A——Z的颜色以及对应的内容
$('.moreslt>u').mouseenter(function(){
	console.log($(this));
	$(this).addClass('mred').siblings().removeClass('mred');
	$('.mde>li>label').html($(this).html());
})
//左边导航栏的显示与隐藏
$('.allkind>li').click(function(){
	$(this).children().slideToggle(500)
	$(this).siblings().children().slideUp();
})
$('.wrap>li').click(function(){
	$(this).addClass('firstli').siblings().removeClass('firstli');
	$(this).children().addClass('firsta');
	$(this).siblings().children().removeClass('firsta');
	return false;
})

//确认按钮弹出弹入
$('.mright4 u>input').focus(function(){
		$('.mright4 u>.sure').show();
})

$('.mright4 u>input').blur(function(){
		$('.mright4 u>.sure').hide();
})
//默认栏选择变色
$('.default>u').click(function(){
	$(this).addClass('de').siblings().removeClass('de');
})


//增加选项
// $('.mright1>span').click(function(){
// 	$('.mhide').css('display','inline-block');
// 	var tag=$('span');
// 	$('.mhide').append(tag);
// 	$(tag).html($(this).html()+' X');
// })
//追加图片
var list=[
		{src:"../images/More.img/a1.jpg",span:'Dickies 袖部字母织带连帽卫衣',u:'Converse',i:'¥499.00'	},
		{src:"../images/More.img/a2.jpg",span:'Converse 新年款图案印花连帽卫衣',u:'Converse',i:'¥469.00'	},
		{src:"../images/More.img/a3.jpg",span:'VANS×ZHAOZHAO CNY鼠年系列长袖Tee鼠年',u:'VANS',i:'¥360.00'	},
		{src:"../images/More.img/a4.jpg",span:'Dickies 袖部字母织带连帽卫衣',u:'VANS',i:'¥360.00'	},
		{src:"../images/More.img/a1.jpg",span:'Dickies 袖部字母织带连帽卫衣',u:'Converse',i:'¥499.00'	},
		{src:"../images/More.img/a2.jpg",span:'Converse 新年款图案印花连帽卫衣',u:'Converse',i:'¥469.00'	},
		{src:"../images/More.img/a3.jpg",span:'VANS×ZHAOZHAO CNY鼠年系列长袖Tee鼠年',u:'VANS',i:'¥360.00'	},
		{src:"../images/More.img/a4.jpg",span:'Dickies 袖部字母织带连帽卫衣',u:'VANS',i:'¥360.00'	},
		{src:"../images/More.img/a1.jpg",span:'Dickies 袖部字母织带连帽卫衣',u:'Converse',i:'¥499.00'	},
		{src:"../images/More.img/a2.jpg",span:'Converse 新年款图案印花连帽卫衣',u:'Converse',i:'¥469.00'	},
		{src:"../images/More.img/a3.jpg",span:'VANS×ZHAOZHAO CNY鼠年系列长袖Tee鼠年',u:'VANS',i:'¥360.00'	},
		{src:"../images/More.img/a4.jpg",span:'Dickies 袖部字母织带连帽卫衣',u:'VANS',i:'¥360.00'	},
		{src:"../images/More.img/a1.jpg",span:'Dickies 袖部字母织带连帽卫衣',u:'Converse',i:'¥499.00'	},
		{src:"../images/More.img/a2.jpg",span:'Converse 新年款图案印花连帽卫衣',u:'Converse',i:'¥469.00'	},
		{src:"../images/More.img/a3.jpg",span:'VANS×ZHAOZHAO CNY鼠年系列长袖Tee鼠年',u:'VANS',i:'¥360.00'	},
		{src:"../images/More.img/a4.jpg",span:'Dickies 袖部字母织带连帽卫衣',u:'VANS',i:'¥360.00'	},
		{src:"../images/More.img/a1.jpg",span:'Dickies 袖部字母织带连帽卫衣',u:'Converse',i:'¥499.00'	},
		{src:"../images/More.img/a2.jpg",span:'Converse 新年款图案印花连帽卫衣',u:'Converse',i:'¥469.00'	},
		{src:"../images/More.img/a3.jpg",span:'VANS×ZHAOZHAO CNY鼠年系列长袖Tee鼠年',u:'VANS',i:'¥360.00'	},
		{src:"../images/More.img/a4.jpg",span:'Dickies 袖部字母织带连帽卫衣',u:'VANS',i:'¥360.00'	},
		{src:"../images/More.img/a1.jpg",span:'Dickies 袖部字母织带连帽卫衣',u:'Converse',i:'¥499.00'	},
		{src:"../images/More.img/a2.jpg",span:'Converse 新年款图案印花连帽卫衣',u:'Converse',i:'¥469.00'	},
		{src:"../images/More.img/a3.jpg",span:'VANS×ZHAOZHAO CNY鼠年系列长袖Tee鼠年',u:'VANS',i:'¥360.00'	},
		{src:"../images/More.img/a4.jpg",span:'Dickies 袖部字母织带连帽卫衣',u:'VANS',i:'¥360.00'	},
		{src:"../images/More.img/a1.jpg",span:'Dickies 袖部字母织带连帽卫衣',u:'Converse',i:'¥499.00'	},
		{src:"../images/More.img/a2.jpg",span:'Converse 新年款图案印花连帽卫衣',u:'Converse',i:'¥469.00'	},
		{src:"../images/More.img/a3.jpg",span:'VANS×ZHAOZHAO CNY鼠年系列长袖Tee鼠年',u:'VANS',i:'¥360.00'	},
		{src:"../images/More.img/a4.jpg",span:'Dickies 袖部字母织带连帽卫衣',u:'VANS',i:'¥360.00'	},
		{src:"../images/More.img/a1.jpg",span:'Dickies 袖部字母织带连帽卫衣',u:'Converse',i:'¥499.00'	},
		{src:"../images/More.img/a2.jpg",span:'Converse 新年款图案印花连帽卫衣',u:'Converse',i:'¥469.00'	},
		{src:"../images/More.img/a3.jpg",span:'VANS×ZHAOZHAO CNY鼠年系列长袖Tee鼠年',u:'VANS',i:'¥360.00'	},
		{src:"../images/More.img/a4.jpg",span:'Dickies 袖部字母织带连帽卫衣',u:'VANS',i:'¥360.00'	},
		{src:"../images/More.img/a1.jpg",span:'Dickies 袖部字母织带连帽卫衣',u:'Converse',i:'¥499.00'	},
		{src:"../images/More.img/a2.jpg",span:'Converse 新年款图案印花连帽卫衣',u:'Converse',i:'¥469.00'	},
		{src:"../images/More.img/a3.jpg",span:'VANS×ZHAOZHAO CNY鼠年系列长袖Tee鼠年',u:'VANS',i:'¥360.00'	},
		{src:"../images/More.img/a4.jpg",span:'Dickies 袖部字母织带连帽卫衣',u:'VANS',i:'¥360.00'	},
		{src:"../images/More.img/a1.jpg",span:'Dickies 袖部字母织带连帽卫衣',u:'Converse',i:'¥499.00'	},
		{src:"../images/More.img/a2.jpg",span:'Converse 新年款图案印花连帽卫衣',u:'Converse',i:'¥469.00'	},
		{src:"../images/More.img/a3.jpg",span:'VANS×ZHAOZHAO CNY鼠年系列长袖Tee鼠年',u:'VANS',i:'¥360.00'	},
		{src:"../images/More.img/a4.jpg",span:'Dickies 袖部字母织带连帽卫衣',u:'VANS',i:'¥360.00'	},
		{src:"../images/More.img/a1.jpg",span:'Dickies 袖部字母织带连帽卫衣',u:'Converse',i:'¥499.00'	},
		{src:"../images/More.img/a2.jpg",span:'Converse 新年款图案印花连帽卫衣',u:'Converse',i:'¥469.00'	},
		{src:"../images/More.img/a3.jpg",span:'VANS×ZHAOZHAO CNY鼠年系列长袖Tee鼠年',u:'VANS',i:'¥360.00'	},
		{src:"../images/More.img/next.jpg",span:'',u:'',i:''	}
]

for(var i=0;i<=list.length;i++){
	var tag=$('.sec>li').eq(0).clone(true);
	if(i==0) $('.sec').html('')
	tag.children('img').attr('src',list[i].src);
	tag.children('span').html(list[i].span);
	tag.children('u').html(list[i].u);
	tag.children('i').html(list[i].i);
	$('.sec').append(tag);
}